import request from '@/utils/request'

// 查询用户投注明细列表
export function listBetDetail(query) {
  return request({
    url: '/system/betDetail/list',
    method: 'get',
    params: query
  })
}

// 查询用户投注明细详细
export function getBetDetail(id) {
  return request({
    url: '/system/betDetail/' + id,
    method: 'get'
  })
}

// 新增用户投注明细
export function addBetDetail(data) {
  return request({
    url: '/system/betDetail',
    method: 'post',
    data: data
  })
}

// 修改用户投注明细
export function updateBetDetail(data) {
  return request({
    url: '/system/betDetail',
    method: 'put',
    data: data
  })
}

// 删除用户投注明细
export function delBetDetail(id) {
  return request({
    url: '/system/betDetail/' + id,
    method: 'delete'
  })
}

// 导出用户投注明细
export function exportBetDetail(query) {
  return request({
    url: '/system/betDetail/export',
    method: 'get',
    params: query
  })
}